﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UserManagerPrivilege.aspx.cs" Inherits="GovernmentOfficeProject.LevelViewUI.admin.UserManagerPrivilege" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
    <style type="text/css">
        .style1
        {
            width: 696px;
        }
        .style2
        {
            width: 696px;
            height: 28px;
        }
        .style3
        {
            height: 28px;
        }
    </style>
</head>
<body>
    <form id="formUMP" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div style="width:800px; height:600px;">        
        <div>
            <table style="width: 100%;">
                <tr>
                    <td class="style1">
                        <div style="width: 685px; font-size: small; vertical-align: super;">
                            <asp:Label ID="Label1" runat="server" Font-Size="Small" 
                                style="font-weight: 700" Text="控制类型："></asp:Label>
                            <asp:DropDownList ID="ddlMasterType" runat="server" AutoPostBack="True" 
                                Font-Size="Small" Height="21px" 
                                onselectedindexchanged="ddlMasterType_SelectedIndexChanged" Width="81px">
                                <asp:ListItem Selected="True" Value="PleaseSelect">请选择..</asp:ListItem>
                                <asp:ListItem Value="PER_ROLE">用户组</asp:ListItem>
                                <asp:ListItem Value="PER_USER">用  户</asp:ListItem>
                            </asp:DropDownList>
&nbsp;&nbsp;&nbsp;
                            <asp:Label ID="lblSelectValue" runat="server" Font-Size="Small" 
                                style="font-weight: 700" Text="控制值名称："></asp:Label>
                            <asp:TextBox ID="txtSelectValue" runat="server" Font-Size="Small" Height="19px" 
                                Width="122px"></asp:TextBox>
                            <asp:Button ID="btnSelect" runat="server" Font-Size="Small" Height="21px" 
                                onclick="btnSelect_Click" Text="查 找" Width="62px" />
                            <asp:Button ID="btnSelectALL" runat="server" Font-Size="Small" Height="21px" 
                                onclick="btnSelectALL_Click" Text="全 部" Width="100px" />
                        </div>
                    </td>
                    <td>
                        &nbsp;</td>
                </tr>
                <tr>
                    <td class="style1">                    
                        <div id="divRoleGridview" runat="server" 
                            style="width: 678px; font-size: small; vertical-align: super;">
                            <asp:GridView ID="GridViewMasterRole" runat="server"
                                AutoGenerateColumns="False" AllowPaging="True" CellPadding="1" 
                                DataKeyNames="RoleID" ForeColor="#333333" GridLines="Vertical" 
                                PageSize="7" 
                                onrowcreated="GridViewMasterRole_RowCreated" 
                                onselectedindexchanged="GridViewMasterRole_SelectedIndexChanged" 
                                Width="100%" onpageindexchanging="GridViewMasterRole_PageIndexChanging" 
                                CellSpacing="1">
                                <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                                <Columns>
                                    <asp:BoundField DataField="RoleID" HeaderText="编码" 
                                        SortExpression="RoleID" Visible="False" >
                                    <HeaderStyle Font-Size="Small" Height="20px" HorizontalAlign="Center" 
                                        Width="80px" />
                                    <ItemStyle Font-Size="Small" Height="18px" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="RoleName" HeaderText="用户组名称" 
                                        SortExpression="RoleName" >
                                    <HeaderStyle Height="20px" Width="130px" />
                                    <ItemStyle Height="18px" HorizontalAlign="Center" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="RoleDesc" HeaderText="用户组描述" 
                                        SortExpression="RoleDesc" >
                                    <HeaderStyle Width="350px" />
                                    <ItemStyle HorizontalAlign="Center" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="RecordStatus" HeaderText="用户组状态" 
                                        SortExpression="RecordStatus" Visible="False" >
                                    <ItemStyle HorizontalAlign="Center" />
                                    </asp:BoundField>
                                    <asp:CommandField ShowSelectButton="True" SelectText="" >
                                    <ControlStyle Width="0px" />
                                    <FooterStyle Width="0px" />
                                    <HeaderStyle Width="0px" />
                                    <ItemStyle HorizontalAlign="Center" Width="0px" />
                                    </asp:CommandField>
                                </Columns>
                                <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                                <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                                <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" 
                                    HorizontalAlign="Center" VerticalAlign="Bottom" Font-Size="Small" 
                                    Height="21px" />
                                <EditRowStyle BackColor="#999999" />
                                <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                            </asp:GridView>
                        </div>
                        <div id="divUserGridview" runat="Server" style="width: 678px; font-size: small; vertical-align: super;">
                            <asp:GridView ID="GridViewMasterUser" runat="server" Width="100%" 
                                AutoGenerateColumns="False" AllowPaging="True" PageSize="7" 
                                DataKeyNames="UserID" CellPadding="1" ForeColor="#333333" 
                                onpageindexchanging="GridViewMasterUser_PageIndexChanging" 
                                onrowcreated="GridViewMasterUser_RowCreated" 
                                onselectedindexchanged="GridViewMasterUser_SelectedIndexChanged" 
                                CellSpacing="1" Font-Size="Small" GridLines="Vertical">
                                <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                                <Columns>
                                    <asp:BoundField DataField="UserID" HeaderText="UserID" 
                                        SortExpression="UserID" Visible="False" />
                                    <asp:BoundField DataField="LoginName" HeaderText="登录名" 
                                        SortExpression="LoginName" >
                                    <HeaderStyle Width="100px" HorizontalAlign="Center" />
                                    <ItemStyle HorizontalAlign="Center" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="RealName" HeaderText="真实姓名" 
                                        SortExpression="RealName" >
                                    <HeaderStyle Width="100px" />
                                    <ItemStyle HorizontalAlign="Center" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="RecordStatus" HeaderText=" 状 态" 
                                        SortExpression="RecordStatus" Visible="False" >
                                    <HeaderStyle Width="60px" HorizontalAlign="Center" />
                                    <ItemStyle HorizontalAlign="Center" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="Backup1" HeaderText="备注信息" 
                                        SortExpression="Backup1" >
                                    <HeaderStyle Width="230px" />
                                    <ItemStyle HorizontalAlign="Center" />
                                    </asp:BoundField>
                                    <asp:CommandField SelectText="" ShowSelectButton="True" CancelText="" 
                                        DeleteText="" EditText="" InsertText="" NewText="" UpdateText="">
                                    <ControlStyle Width="0px" />
                                    <FooterStyle Width="0px" />
                                    <HeaderStyle Width="0px" />
                                    <ItemStyle Width="0px" />
                                    </asp:CommandField>
                                </Columns>
                                <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                                <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                                <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" 
                                    Font-Italic="False" Font-Overline="False" Font-Size="Small" Height="21px" />
                                <EditRowStyle BackColor="#999999" />
                                <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                            </asp:GridView>
                        </div>
                        
                    </td>
                    <td>
                        &nbsp;</td>
                </tr>
                <tr>
                    <td class="style1">
                        <div style="width: 685px; font-size: small; vertical-align: super;">
<asp:UpdatePanel ID="upOperation" runat="Server">
<ContentTemplate>
                            <asp:Label ID="lblOperationMessage" runat="server" Font-Size="Small" ForeColor="#3399FF" 
                                style="font-weight: 700" Text="操作状态："></asp:Label>
</ContentTemplate>
</asp:UpdatePanel> 
                        </div>
                    </td>
                    <td>
                        &nbsp;</td>
                </tr>
                <tr>
                    <td class="style1">
                        <div style="width: 674px; font-size: small; vertical-align: super; height: 228px; overflow: auto;">
<asp:UpdatePanel ID="UpdatePanel1" runat="Server">
<ContentTemplate>
                            <asp:GridView ID="GridViewAccess" runat="server" Height="100%" Width="100%" 
                                BackColor="White" BorderColor="#999999" BorderStyle="None" BorderWidth="1px" 
                                CellPadding="1" GridLines="None" 
                                onrowdatabound="GridViewAccess_RowDataBound"                                
                                DataKeyNames="orderID" 
                                AutoGenerateColumns="False" CellSpacing="1">
                                <RowStyle BackColor="#EEEEEE" ForeColor="Black" />
                                <Columns>
                                    <asp:TemplateField HeaderText="授 权">
                                        <ItemTemplate>
                                            <asp:CheckBox ID="CheckBoxSelect" runat="server" 
                                                Checked='<%# Bind("selectValue") %>' AutoPostBack="True" 
                                                oncheckedchanged="CheckBoxSelect_CheckedChanged" />
                                        </ItemTemplate>
                                        <HeaderStyle Width="50px" />
                                        <ItemStyle HorizontalAlign="Center" />
                                    </asp:TemplateField>
                                    <asp:BoundField DataField="menuName" HeaderText="模 块" >
                                    <ItemStyle HorizontalAlign="Center" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="buttonName" HeaderText="功 能" >
                                    <ItemStyle HorizontalAlign="Center" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="buttonID" HeaderText="按钮编号" >
                                    <ItemStyle HorizontalAlign="Center" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="menuID" HeaderText="模块编号" >
                                    <ItemStyle HorizontalAlign="Center" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="menuNo" HeaderText="模块码" >
                                    <ItemStyle HorizontalAlign="Center" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="menuParentNo" HeaderText="上级码" >
                                    <ItemStyle HorizontalAlign="Center" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="orderID" HeaderText="序号" SortExpression="orderID" >
                                    <ItemStyle HorizontalAlign="Center" />
                                    </asp:BoundField>
                                </Columns>
                                <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
                                <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
                                <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
                                <HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" />
                                <AlternatingRowStyle BackColor="#DCDCDC" />
                            </asp:GridView>
</ContentTemplate>
</asp:UpdatePanel>
                        </div>
                    </td>
                    <td>
                        &nbsp;</td>
                </tr>
                <asp:ObjectDataSource ID="ObjectDataSourceBindUserList" runat="server" 
                    SelectMethod="getAllUser" 
                    TypeName="GovernmentOfficeProject.LevelBusinessLogic.BLL_USER">
                </asp:ObjectDataSource>
                <asp:ObjectDataSource ID="ObjectDataSourceBindRoleList" runat="server" 
                    SelectMethod="getRoleList" 
                    TypeName="GovernmentOfficeProject.LevelDataAccess.DAL_USER_Role">
                </asp:ObjectDataSource>
            </table>
        </div>        
    </div>
    </form>
</body>
</html>
